<script type="text/javascript">
	$(document).ready(function() {
		$( "#datepicker" ).datepicker(
				{dateFormat: 'yy-mm-dd'}
		);
	});
</script>
<div class="pay-bills-container form-container pull-left">
	<?php
	$this->load->helper('form');
	$this->load->helper('html');

	$billers = array();
	$billers['0'] = 'SELECT';
	$billers_array = $this->global_model->get_dealers_dropdown();

	// Populating the $category array with the query result.
	foreach ($billers_array as $value) {
		$billers[$value['brid']] = $value['name'];
	}

	print form_open('bills/pay_bill');

	print form_label('Transaction date:');
	print form_input('date','','id="datepicker" placeholder="DD/MM/YY"');

	print form_label('Select the biller:');
	print form_dropdown('biller',$billers,'','id="biller-selector"');

	print form_label('Particulars:');
	print form_input('particulars','','placeholder="Enter the description"');

	print form_label('Transaction Amount:');
	print form_input('amount','', 'placeholder="Enter the total amount"');

	print br();
	print form_submit('save', 'Save', 'class="btn btn-large btn-success"');

	print form_close();
	?>
</div>